package com.lipei.vrp;

import com.lipei.vrp.imp.OriginalVRP;
import com.lipei.vrp.imp.VRPH;
import com.lipei.vrp.imp.VRP_ej;
import com.lipei.vrp.imp.VRP_init;
import com.lipei.vrp.imp.VRP_rtr;
import com.lipei.vrp.imp.VRP_sa;

public enum EAlgorithm {
	vrp("vrp", OriginalVRP.createIns()), vrph("vrph", VRPH.createIns()), vrp_ej(
			"vrp_ej", VRP_ej.createIns()), vrp_init("vrp_init", VRP_init
			.createIns()), vrp_plot("vrp_plot", null), vrp_rtr("vrp_rtr",
			VRP_rtr.createIns()), vrp_sa("vrp_sa", VRP_sa.createIns());
	private String name;
	private IAlgorithmCreator ialg;

	public String getName() {
		return name;
	}

	public IAlgorithmCreator getIalg() {
		return ialg;
	}

	private EAlgorithm(String name, IAlgorithmCreator ialg) {
		this.name = name;
		this.ialg = ialg;
	}

}
